﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>登录</title>
    <!-- 引入样式文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vant@2.10/lib/index.css" />
    <style>
        #app {
            margin-top: 70%;
        }
    </style>
</head>

<body>
    <div id="app">
        <van-form v-on:submit="onSubmit">
            <van-row>
                <van-field v-model="username" name="username" label="用户名" placeholder="用户名"
                           :rules="[{ required: true, message: '请填写用户名' }]" />
            </van-row>
            <van-row>
                <van-field v-model="password" type="password" name="password" label="密码" placeholder="密码"
                           :rules="[{ required: true, message: '请填写密码' }]" />
            </van-row>
            <div style="margin: 16px;">
                <van-button round block type="info" native-type="submit">
                    提交
                </van-button>
            </div>
        </van-form>
    </div>

    <!-- 引入 Vue 和 Vant 的 JS 文件 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6/dist/vue.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vant@2.10/lib/vant.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <script src="~/js/login.js"></script>
</body>

</html>